﻿using System;
using Journal.Common.Objects.Enums;

namespace Journal.Common.Models
{
    public class UrlModelItem
    {
        public UrlModelItem(Func<dynamic, string> url, UrlType urlType)
        {
            Url = url;
            UrlType = urlType;
        }

        public UrlModelItem(Func<dynamic, string> url, UrlType urlType, string name)
            : this(url, urlType)
        {
            Name = name;
        }

        public Func<dynamic, string> Url { get; set; }

        public UrlType UrlType { get; set; }

        public string Name { get; set; }
    }
}